/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.openmath.jome.model;

/**
 *
 * @author Mr.Sam
 */
import java.util.*;
import fr.ove.openmath.jome.model.*;
import fr.ove.openmath.jome.model.events.ModelEvent;

/**
*
* @author © 1999 DIRAT Laurent
* @version 2.0  28/06/1999
*/
public class Liste extends NaryOperator2 {
    /**
    * Is the "enclosure" of the list visible ? 
    */
    private boolean isVisible = true;
    
    /**
    * Is the list displayed vertically or horizontally ?
    */
    private boolean isVertical = false;
    
    /**
    * The Constructor.
    * 
    */
    public Liste() {
        setTheOperator("{");
        setEnding("}");
    }
    
    /**
    * Returns <CODE>true</CODE> if the curly brackets around the elements have to be displayed.
    * <CODE>false</CODE> otherwise.
    */
    public boolean isVisible() {
        return isVisible;
    }
    
    /**
    * Sets if the curly brackets around the elements have to be displayed.
    * @param isVisible <CODE>true</CODE> if we want it. <CODE>false</CODE> otherwise.
    */
    public void setIsVisible(boolean isVisible) {
        this.isVisible = isVisible;
    }

    /**
    * Returns <CODE>true</CODE> if the list is displayed vertically.
    * <CODE>false</CODE> otherwise.
    */
    public boolean isVertical() {
        return isVertical;
    }
    
    /**
    * Sets if the list is displayed vertically.
    * @param isVertical <CODE>true</CODE> if we want it. <CODE>false</CODE> otherwise.
    */
    public void setIsVertical(boolean isVertical) {
        this.isVertical = isVertical;
    }
}
